package com.liang.security.springmvc.service;

import com.liang.security.springmvc.model.AuthenticationRequest;
import com.liang.security.springmvc.model.UserDto;

/**
 * @author liang zai
 * @date 2021/8/31 10:44
 * @description
 */
public interface AuthenticationService {

    /**
     * 用户认证
     * @param request 用户认证请求，账号和密码
     * @return 认证成功的用户信息
     */
    UserDto authentication(AuthenticationRequest request);
}
